#include <string>
#include <fstream>


class grayscale
{
	public:
		
		grayscale(std::string);
		~grayscale();
		void process();
		void brighten();
		void darken();
		void contrast();
		void halfsize();
		void twicesize();
		
	private:
		void invert();
                void flipHorizontal();
                void flipVertical();
                void dither();
		void save();

		
		int** imgArray;
                std::ifstream infile;
                std::string name;
                std::string magicNum;

		int maxVal;
		int numCols;
		int numRows;
};